package com.ruoyi.modules.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.modules.mapper.ConstructionWasteTransportationOrderMapper;
import com.ruoyi.modules.domain.ConstructionWasteTransportationOrder;
import com.ruoyi.modules.service.IConstructionWasteTransportationOrderService;

/**
 * 建筑垃圾联运订单信息Service业务层处理
 * 
 * @author ssh
 * @date 2024-12-15
 */
@Service
public class ConstructionWasteTransportationOrderServiceImpl implements IConstructionWasteTransportationOrderService 
{
    @Autowired
    private ConstructionWasteTransportationOrderMapper constructionWasteTransportationOrderMapper;

    /**
     * 查询建筑垃圾联运订单信息
     * 
     * @param id 建筑垃圾联运订单信息主键
     * @return 建筑垃圾联运订单信息
     */
    @Override
    public ConstructionWasteTransportationOrder selectConstructionWasteTransportationOrderById(String id)
    {
        return constructionWasteTransportationOrderMapper.selectConstructionWasteTransportationOrderById(id);
    }

    /**
     * 查询建筑垃圾联运订单信息列表
     * 
     * @param constructionWasteTransportationOrder 建筑垃圾联运订单信息
     * @return 建筑垃圾联运订单信息
     */
    @Override
    public List<ConstructionWasteTransportationOrder> selectConstructionWasteTransportationOrderList(ConstructionWasteTransportationOrder constructionWasteTransportationOrder)
    {
        return constructionWasteTransportationOrderMapper.selectConstructionWasteTransportationOrderList(constructionWasteTransportationOrder);
    }

    /**
     * 新增建筑垃圾联运订单信息
     * 
     * @param constructionWasteTransportationOrder 建筑垃圾联运订单信息
     * @return 结果
     */
    @Override
    public int insertConstructionWasteTransportationOrder(ConstructionWasteTransportationOrder constructionWasteTransportationOrder)
    {
        constructionWasteTransportationOrder.setCreateTime(DateUtils.getNowDate());
        return constructionWasteTransportationOrderMapper.insertConstructionWasteTransportationOrder(constructionWasteTransportationOrder);
    }

    /**
     * 修改建筑垃圾联运订单信息
     * 
     * @param constructionWasteTransportationOrder 建筑垃圾联运订单信息
     * @return 结果
     */
    @Override
    public int updateConstructionWasteTransportationOrder(ConstructionWasteTransportationOrder constructionWasteTransportationOrder)
    {
        constructionWasteTransportationOrder.setUpdateTime(DateUtils.getNowDate());
        return constructionWasteTransportationOrderMapper.updateConstructionWasteTransportationOrder(constructionWasteTransportationOrder);
    }

    /**
     * 批量删除建筑垃圾联运订单信息
     * 
     * @param ids 需要删除的建筑垃圾联运订单信息主键
     * @return 结果
     */
    @Override
    public int deleteConstructionWasteTransportationOrderByIds(String[] ids)
    {
        return constructionWasteTransportationOrderMapper.deleteConstructionWasteTransportationOrderByIds(ids);
    }

    /**
     * 删除建筑垃圾联运订单信息信息
     * 
     * @param id 建筑垃圾联运订单信息主键
     * @return 结果
     */
    @Override
    public int deleteConstructionWasteTransportationOrderById(String id)
    {
        return constructionWasteTransportationOrderMapper.deleteConstructionWasteTransportationOrderById(id);
    }
}
